
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author" content="">

	<title>NEWS</title>
	
	<!-- css -->
	<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
	<link href="./assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
	<link href="./assets/css1/nivo-lightbox.css" rel="stylesheet" />
	<link href="./assets/css1/nivo-lightbox-theme/default/default.css" rel="stylesheet" type="text/css" />
	<link href="./assets/css1/animations.css" rel="stylesheet" />
	<link href="./assets/css1/style.css" rel="stylesheet">
	<link href="./assets/color/default.css" rel="stylesheet">


</head>

<body id="page-top" data-spy="scroll" data-target=".navbar-custom">
	
	<section class="hero" id="intro">
		<div class="container">
			<div class="row">
				<div class="col-md-12 text-right navicon">
					<a id="nav-toggle" class="nav_slide_button" href="#"><span></span></a>
				</div>
			</div>
			<div class="row">
				<div class="col-md-8 col-md-offset-2 text-center inner">
					<div class="animatedParent">
						<h1 class="animated fadeInDown">DAILY NEWS</h1>
						<p class="animated fadeInUp">Welcome to our studio</p>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-6 col-md-offset-3 text-center">
					<a href="#social" class="learn-more-btn btn-scroll">Learn more</a>
				</div>
			</div>
			<div class="row">
				<div class="col-md-6 col-md-offset-3 text-center"><li data-toggle="modal" data-target="#signin-signup-tab" id="signin-button">
					<a href="index.php?c=index&m=index#about" class="learn-more-btn btn-scroll">Return</a>
				</div>
			</div>

			
		</div>
	</section>
	</div>
				<div class="modal-footer">
				</div>
			</div>
		</div>
	</div>
	
	
	<!-- Navigation -->
	<div id="navigation">
		<nav class="navbar navbar-custom" role="navigation">
			<div class="container">
				<div class="row">
					<div class="col-md-2">
						<div class="site-logo">
							<a href="index.html" class="brand">NEWS</a>
						</div>
					</div>


					<div class="col-md-10">

						<!-- Brand and toggle get grouped for better mobile display -->
						<div class="navbar-header">
							<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#menu">
								<i class="fa fa-bars"></i>
							</button>
						</div>
						<!-- Collect the nav links, forms, and other content for toggling -->
						<div class="collapse navbar-collapse" id="menu">
							<ul class="nav navbar-nav navbar-right">
								<li class="active"><a href="#intro">Home</a></li>
								<li><a href="#social">Content</a></li>
								<li><a href="#comments">Comments</a></li>
							</ul>
						</div>
						<!-- /.Navbar-collapse -->

					</div>
				</div>
			</div>
			<!-- /.container -->
		</nav>
	</div> 
	<!-- /Navigation -->  

	<!-- Section: about -->
	<section id="social" class="home-section color-dark bg-white">
		<div class="container marginbot-50">
			<div class="row">
				<div class="col-lg-8 col-lg-offset-2">
					<div class="animatedParent">
						<div class="section-heading text-center animated bounceInDown">
							<h2 class="h-bold">News Content</h2>
							<div class="divider-header"></div>
						</div>
					</div>
				</div>
			</div>

		</div>

		<div class="container">


			<div class="row">


				<div class="col-lg-8 col-lg-offset-2 animatedParent">		
					<div class="text-center">
						<div class="navbar-header">
							<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#menu">
								<i class="fa fa-bars"></i>
							</button>
						</div>
						<!-- Collect the nav links, forms, and other content for toggling -->
						<p>	
<?php 
	//var_dump($data['news']);
	
	$nid=$data['news']['nid'];//二维数组拿nid
	
	foreach ($data as $row) {
		
	
	   
	echo $row['content'];

	  
	  echo'<img src="Home/upload/'.$row['pic'].'" ';
	}

	 ?>
		
    
						 </p>
					    
					


						<!-- /.Navbar-collapse -->

					</div>
				</div>
						<a href="#comments" class="btn btn-skin btn-scroll">来一发评论吧</a>
					</div>
				</div>


			</div>		
		</div>

	</section>
	<!-- /Section: about -->

	
	
	
	<!-- Section: contact -->
	<section id="comments" class="home-section nopadd-bot color-dark bg-gray text-center">
		<div class="container marginbot-50">
			<div class="row">
				<div class="col-lg-8 col-lg-offset-2">
					<div class="animatedParent">
						<div class="section-heading text-center">
							<h2 class="h-bold animated bounceInDown">Welcome your views</h2>
							<div class="divider-header"></div>
						</div>
					</div>
				</div>
			</div>

		</div>
		
		<div class="container">

			<?php 
			
			//var_dump($nid);
			session_start();

			//var_dump( $_SESSION['uid']) ?>
			<div class="form-group">
			 <form  method=post action="index.php?c=index&m=addcomments">
			 	<input type="hidden" name="uid" value="<?php echo $_SESSION['uid']; ?>">
              	<input type="hidden" name="nid" value="<?php echo $nid; ?>">
				<textarea name="comment" id="message"rows="6" cols="100" required="required"
				placeholder="Message"></textarea> 
			</div>						
			<?php if(isset($_SESSION['uname']) && !empty($_SESSION['uname'])){ ?>

			<button type="submit" class="btn btn-skin btn-lg btn-lg" id="btnContactUs">Submit</button>

			<?php } else{?>
				
		<a href="index.php?c=index&m=index" data-toggle="modal" data-target="#login">请登录账号</a>

			<?php } ?>
			
	
				</form>
			</div>
		</div>
	</form>
</div>
</div>	


</div>
</section>
<!-- /Section: contact -->


<footer>
	<div class="container">
		<div class="row">
			<div class="col-md-6">
				<ul class="footer-menu">
					<li><a href="#">Home</a></li>
					<li><a href="#">Press release</a></li>
				</ul>
			</div>
			<div class="col-md-6 text-right">
				<p>&copy;Copyright 2016 - Quitting wrinkles the soul.by 14002 CST</p>
                    <!-- 
                        All links in the footer should remain intact. 
                        Licenseing information is available at: http://bootstraptaste.com/license/
                        You can buy this theme without footer links online at: http://bootstraptaste.com/buy/?theme=Bocor
                    -->
                </div>
            </div>	
        </div>
    </footer>

    <!-- Core JavaScript Files -->
    <script src="./assets/js/jquery.min.js"></script>	 
    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
    <script src="./assets/js/jquery.sticky.js"></script>
    <script src="./assets/js/jquery.easing.min.js"></script>	
    <script src="./assets/js/jquery.scrollTo.js"></script>
    <script src="./assets/js/jquery.appear.js"></script>
    <script src="./assets/js/stellar.js"></script>
    <script src="./assets/js/nivo-lightbox.min.js"></script>

    <script src="./assets/js/custom.js"></script>
    <script src="./assets/js/css3-animate-it.js"></script>

</body>

</html>
